←Select platform

Run(List<IFeature>,LEADDocument,int,int,CancellationToken) Method

Summary

Asynchronous method which runs a list of features on a LEADDocument, returning the results of processing. This API can be run for specific pages.

Syntax
C#
VB
C++
public Task<List<ElementSetResult>> Run( 
   List<IFeature> features, 
   LEADDocument document, 
   int from, 
   int to, 
   CancellationToken token 
) 
Public Function Run( 
   ByVal features As List(Of IFeature 
), 
   ByVal document As LEADDocument, 
   ByVal from As Integer, 
   ByVal to As Integer, 
   ByVal token As CancellationToken) As Task(Of List(Of ElementSetResult)) 
public:  
   Task<List<ElementSetResult^>^>^ Run( 
       List<IFeature^>^ features, 
      LEADDocument^ document, 
      Int32 from, 
      Int32 to, 
      CancellationToken^ token 
   ) 

Parameters

features

List of features to run on the document.

document

The document on which the features will be run.

from

Page from which to start, 1-based.

to

Page to end at, 1-based.

token

A CancellationToken enables cooperative cancellation between threads or Task objects. You create a cancellation token by instantiating a CancellationTokenSource object, which manages cancellation tokens retrieved from its CancellationTokenSource.

Return Value

Results of processing the document.

Requirements
Target Platforms
Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.Unstructured Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.